<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>

     function People(name,age){
        this.name = name;
        this.age = age;
     }

     function Students(school,grade,theClass){
        this.school = school;
        this.grade = grade;
        this.theClass =  theClass;
     }

     //继承操作
     Students.prototype = new People("wx",18);

     var students = new Students("某某高中","高一","三班");

     console.dir(students);


    </script>
</body>
</html>